package vek.XML.parsedObjects;

import vek.Objects.Addresse;

/**
 * Simple class to contain the Addresse data read by the XML Parsers.
 * This class is then used to create the Addresse object by giving this object to the Addresse constructor
 * @see Addresse
 * @author Christian, Michal og Jakob (Hold1, gruppe 2)
 */
public class ParsedAddresse {
    
    public String road;
    public int roadNumber;
    public String extrainfo;
    public int postcode;
    public String city;
    public String country;
    
    /**
     * 
     * @param r the road of the POI
     * @param rn the road number of the POI
     * @param ei the extra info (floor, etc.) of the POI
     * @param pc the postcode of the POI
     * @param ci the city of the POI
     * @param co the country of the POI
     */
    
    public ParsedAddresse(String r, int rn, String ei, int pc, String ci, String co)
    {
        road = r;
        roadNumber = rn;
        extrainfo = ei;
        postcode = pc;
        city = ci;
        country = co;
    }
    
    /**
     * Gets ParsedAddresse as a string, used solely for debugging purposes.
     * @return the road, roadnumber, extrainfo, postcode, city and country.
     */
    
    public String toString()
    {
        return road + " " + roadNumber + " " + extrainfo + " " + postcode + " " + city + " " + country;
    }

}
